package cn.zn.modules.appoin.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * 工作时间保存
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class AppoinTimeMainSaveDTO {
    @NotEmpty
    private List<String> userCodes;
    @NotNull
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date appoinDate;
}